﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using CodeGame.ServerObjects;

using Lidgren.Network;

namespace CodeGame.Networking.Serverside
{
    class ServerProtocolAuth
    {

        public static void SendTokenChange(Player ply)
        {
            NetOutgoingMessage msg = DedicatedServer.CreateMessage(ServerClientNet.ChangeToken);

            msg.Write(ply.AuthToken);

            DedicatedServer.SendMessage(msg, ply.Connection);
        }
    }
}
